package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.entity.data.EnterpriseDO;
import com.bdzl.pub.util.param.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name="loanAdmin", configuration = FeignConfig.class,contextId = "EnterpriseService",url = Constant.sys+":8001")
public interface AdminEnterpriseFeignService {

    /**
     * 添加营业执照
     */
    @ResponseBody
    @PostMapping("/bdzl/enterprise/save")
    public R save(@RequestBody EnterpriseDO enterprise);
}
